package yuan.userservice9999.feign_client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @version: 1.0
 * @Description: TODO
 * @author: zZmH
 * @date: 2020/09/18 01:11
 */


@FeignClient(value = "product-service")
@RequestMapping("/product")
public interface ProductClient {

    @GetMapping("/showProduct")
     String getProduct();


    @GetMapping("/showProductParam")
     String getProduct(@RequestParam("id") String id);


    @GetMapping("/hystrixtest1")

    String hystrixtest1(@RequestParam int id);


    @GetMapping("/hystrixtest2")
    String hystrixtest2(@RequestParam int id);
}
